package cn.u313.entry;

import lombok.Getter;
import lombok.Setter;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * 兑换记录
 */
@Getter
@Setter
@Entity
@Table(name = "t_present_record")
public class PresentRecordEntry {
    @Id
    private int id;
    private String name;//名称
    private int price;//价格
    private String type;//是否开始
    private String qq;//目标QQ
    private String mainId;//
    private Date date;
    private String typePresent;//兑换类型

//    private String

    @Override
    public String toString() {
        return "【"+getId()+"】"+name+",qq="+qq+"\n";
    }
}
